-- frigid
-- created by dengc
-- 寒冷状态（冰霜泰坦用）

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local pos = DungeonBossM.getBossPos();
        local target = DungeonM.getGridByPos(pos).monster;

        local v = target.dbase:query("increase_skill_effect") or 0;
        local baseValue = (prop[3] - v)/10;

        local increaseProp = PropM.combine(target, "increase_skill_effect", 2329);

        desc = string.gsub(desc, "{prop}", baseValue + increaseProp[3]/10);
        
        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};